﻿using Risk.Model;

namespace Site.Models
{
    /// <summary>
    /// Data transfer object for a throw of a die
    /// </summary>
    public class ThrowDTO
    {
        public ThrowDTO(Throw result)
        {
            Dice = result.Dice;
            DefendingDice = result.DefendingDice;
            Victory = result.Victory;
        }
        /// <summary>
        /// The outcomes of the attack dice
        /// </summary>
        public int[] Dice { get; set; }

        /// <summary>
        /// The outcomes of the defending dice
        /// </summary>
        public int[] DefendingDice { get; set; }

        /// <summary>
        /// Was there a victory: have all the troops in the defending region been defeated
        /// </summary>
        public bool Victory { get; set; }
    }
}